<%--
  Created by IntelliJ IDEA.
  User: stone
  Date: 2022/5/30
  Time: 16:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>jsp可以直接访问，不会通过DispatcherServlet</h1>
<form action="/upload/file" enctype="multipart/form-data" method="post">
    <%--input标签的name属性值：请求参数名
        name属性值写了啥，Handler方法的形参名就要写啥
    --%>
    <input type="file" name="myfile"><br>
    <input type="submit">
</form>
<hr>
<h1>上传多个文件</h1>
<form action="/upload/files" enctype="multipart/form-data" method="post">
    <%--input标签的name属性值：请求参数名
        name属性值写了啥，Handler方法的形参名就要写啥
    --%>
    <input type="file" multiple name="myfiles"><br>
    <input type="submit">
</form>

<%--<form action="/login">
    &lt;%&ndash;login?username=xxx&password=xxx&ndash;%&gt;
<input type="text" name="username"><br>
<input type="text" name="password"><br>
    <input type="submit">
</form>--%>

</body>
</html>
